package com.gtw.modules.dao;

import com.gtw.modules.entity.TbCity;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/** 城市
 * @author wuye
 */
@Mapper
@Repository
public interface TbCityDao {

    int deleteByPrimaryKey(Integer cityid);

    int insert(TbCity record);

    int insertSelective(TbCity record);

    TbCity selectByPrimaryKey(Integer cityid);

    int updateByPrimaryKeySelective(TbCity record);

    int updateByPrimaryKey(TbCity record);

    /**
     * 根据省份查询城市
     * @param provinceid
     * @return
     */
    List<TbCity> findbyProvinecId(int provinceid);
}